import request from '@/utils/request'


export function adminLogin(data) {
  return request({
    url: '/web/extra/stufflogin',
    method: 'post',
    data: data
  })
}

// 获取所有商品
export function getAllGoods(data) {
  return request({
    url: '/web/extra/allGoods',
    method: 'post',
    data: data
  })
}
export function getAllCoupons(data) {
  return request({
    url: '/web/extra/getCoupons',
    method: 'post',
    data: data
  })
}
export function handleClientCashPay(data) {
  return request({
    url: '/web/extra/clientCashPay',
    method: 'post',
    data: data
  })
}
export function handleReCharge(data) {
  return request({
    url: '/web/extra/balanceCharge',
    method: 'post',
    data: data
  })
}
export function handleFreeTime(data) {
  return request({
    url: '/web/extra/rechargeFreeTime',
    method: 'post',
    data: data
  })
}
export function handleClientPay(data) {
  return request({
    url: '/web/extra/clientPay',
    method: 'post',
    data: data
  })
}
export function handleLogin(data) {
  return request({
    url: '/web/extra/clentCashPayLogin',
    method: 'post',
    data: data
  })
}

export function getUserData(data) {
  return request({
    url: '/web/client/initUser',
    method: 'post',
    data: data
  })
}
export function checkPayCode(data) {
  return request({
    url: '/web/client/checkPayCode',
    method: 'post',
    data: data
  })
}

export function validatePayCode(data) {
  return request({
    url: '/web/client/validatePayCode',
    method: 'post',
    data: data
  })
}

export function setPayCode(data) {
  return request({
    url: '/web/client/setPayCode',
    method: 'post',
    data: data
  })
}

export function logout(data) {
  return request({
    url: '/web/client/logout',
    method: 'post',
    data: data
  })
}

export function rewardSave(data) {
  return request({
    url: '/web/extra/rewardSave',
    method: 'post',
    data: data
  })
}
